/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package sdk.weinxin.beans.kfmessage;

import sdk.weinxin.beans.message.Media;

/**
 *
 * @author 张森
 */
public class ImageKfMessage extends KfMessage {

    public static final String TYPE = "image";

    private Media image;

    public ImageKfMessage() {
        this.setMsgtype(TYPE);
    }

    public ImageKfMessage(String touser, String mediaId) {
        super(touser, TYPE);
        this.image = new Media(mediaId);
    }

    public Media getImage() {
        return image;
    }

    public void setImage(Media image) {
        this.image = image;
    }
}
